package com.ourchem.bus.domain;

import com.ourchem.bus.vo.FileVo;
import com.ourchem.common.annotation.Excel;
import com.ourchem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * lecturer对象 lecturer
 * 
 * @author xiYan
 * @date 2023-01-12
 */
public class Lecturer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 讲师名 */
    @Excel(name = "讲师名")
    private String name;

    /** 讲师简介 */
    @Excel(name = "讲师简介")
    private String intro;

    /** 讲师封面照片 */
    @Excel(name = "讲师封面照片")
    private String cover;

    /** 讲师性别（0男1女） */
    @Excel(name = "讲师性别", readConverterExp = "0=男1女")
    private String sex;

    /** 关联机构id */
    @Excel(name = "关联机构id")
    private Long orgId;

    private FileVo file;

    public FileVo getFile() {
        return file;
    }

    private  Organization org;

    private  Course course;

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Organization getOrg() {
        return org;
    }

    public void setOrg(Organization org) {
        this.org = org;
    }

    public void setFile(FileVo file) {
        this.file = file;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("intro", getIntro())
            .append("cover", getCover())
            .append("sex", getSex())
            .append("orgId", getOrgId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
